home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15064 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: dispatch.news.demon.net!demon!broadwtr.demon.co.uk
  2. From: womble@broadwtr.demon.co.uk (Dean Richardson)
  3. Newsgroups: comp.lang.c++
  4. Subject: HELP: How to set a Directory Attibute
  5. Date: Wed, 03 Apr 1996 22:28:46 GMT
  6. Message-ID: <828538129.4461@broadwtr.demon.co.uk>
  7. NNTP-Posting-Host: broadwtr.demon.co.uk
  8. X-NNTP-Posting-Host: broadwtr.demon.co.uk
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. Hi -
  12.  
  13. I wish to set an attribute upon a directory.  The directory could be
  14. on FAT (DOS), VFAT (Windows 95) or Netware file server - however I
  15. don't wish the routine I call to be operating specific.
  16.  
  17. I'm using _rtl_chmode() (Borland C++ 4.5, DOS application) to change
  18. attributes upon files - no problem.  I don't think I can use this for
  19. a directory (eg, set ReadOnly on "C:\\TEMP\\ .").  Or can I?
  20.  
  21. In case you're wondering why I want to do this, my firm requires I
  22. write a program which takes a copy of the directory structure on a
  23. machine.  The directory structure must include directory attributes -
  24. for example a Windows 95 briefcase directory has to be marked ReadOnly
  25. for it to work properly.
  26.  
  27. Responses by EMail would be appreciated - I don't get to this
  28. conference very often.
  29.  
  30. Many thanks,
  31. Dean 
  32. ---
  33. Womble@broadwtr.demon.co.uk
  34.  
  35.